package com.stone.serverless.mybatis.controller;

import com.stone.serverless.mybatis.entity.EmrWriteRecordOutpatientDO;
import com.stone.serverless.mybatis.service.MybatisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description: TODO
 * @Author: MECHREVO
 * @Date: 2022/1/17 10:55
 * @Version: 1.0.0
 */
@RestController
public class MybatisTestController {

    @Autowired
    private MybatisService mybatisService;

    @GetMapping("/mybatis")
    public List<EmrWriteRecordOutpatientDO> mybatis() {

        return mybatisService.mybatis();
    }
}
